package cluster

import "kubeInstall/server/models"

type Credential struct {
	ID             string `json:"id" gorm:"primary_key;column:credential_id"`
	Name           string `json:"name" gorm:"not null"`
	Type           string `json:"type" gorm:"not null"`
	CredentialData string `json:"credential_data" gorm:"not null"`
	Username       string `json:"username" gorm:"not null"`

	models.BaseModel
}

func (c Credential) TableName() string {
	return "t_install_credential"
}
